export const state = () => ({
  useFooter: false, // 默认不显示页脚
  useHomeSider: true, // 默认显示首页右侧边栏
  useMySiderOnRight: true, // 默认个人中心侧边栏在右侧

  baseInfo: {
    telphone: '(010) 6893 3383', // 电话
    email: 'press@baai.ac.cn', // 邮箱
    address: '北京市海淀区知春路27号量子芯座七层', // 地址
    company: '北京智源人工智能研究院', // 公司名称
    icp: '京ICP备19012194号', // ICP备案号
    year: new Date().getFullYear(), // 当前年份
  },

  navlist: [
    { name: '首页', path: '/', useFooter: true },
    { name: '评论', path: '/comments', useFooter: false },
    { name: '收藏', path: '/collects', useFooter: false },
    { name: '活动', path: '/events', useFooter: false },
  ], // 头部导航
})

export const mutations = {
  changeFooter (state, useFooter) {
    state.useFooter = useFooter
  },

  changeHomeSider (state, useHomeSider) {
    state.useHomeSider = useHomeSider
  },

  changeMySiderLayout (state, useMySiderOnRight) {
    state.useMySiderOnRight = useMySiderOnRight
  },
}

export const actions = {}
